import request from '/@/utils/request';

export const getPage = (query:any) =>
	request({
		url: '/mall/logisticscompany/page',
		method: 'get',
		params:query
	});

export const getList = (query:any) =>
	request({
		url: '/mall/logisticscompany/list',
		method: 'get',
		params:query
});	

export const getById = (id:string) =>
	request({
		url: '/mall/logisticscompany/'+id,
		method: 'get',
	});

export const addObj = (data: any) =>
	request({
		url: '/mall/logisticscompany',
		method: 'post',
		data,
	});

export const editObj = (data: any) =>
	request({
		url: '/mall/logisticscompany',
		method: 'put',
		data,
	});

